import { defineStore } from 'pinia';
import { ref } from 'vue';
export const demo = defineStore(
	'demo',
	() => {
		let value = ref('');
		let say = () => {
			console.log('you say setup ');
		};
		return {
			value,
			say,
		};
	},
	{
		persist: {
			enabled: true, // 这个配置代表存储生效,而且是整个store都存储,默认情况下整个状态将存储在 sessionStorage 中
		},
	},
);
